public class Main {
/*    public static void Func(Object obj){
        System.out.println(obj);
    }
    public static void main(String[] args) {
        Func(new Student());
        Func(new Person());
    }*/
    public static String Func(Object obj){
        return obj.toString();
    }

    public static void main(String[] args) {
        Object one = new String("Batman");
        Object two = new Person("Bruce");
        System.out.println(Func(two));
    }
}
